<template>
  <div class="goodsdesc">
    <h3>{{info.title}}</h3>
    <hr>
    <div v-html="info.content"></div>
  </div>
</template>

<script>
import {api} from '@/common/api'
export default {
  data () {
    return {
      info: [],
      id: this.$route.params.id
    }
  },
  created () {
    this.getinfo()
  },
  methods: {
    getinfo () {
      // http://www.liulongbin.top:3005/api/goods/getdesc/88
      this.$axios.get(`${api}goods/getdesc/${this.id}`).then(res => {
        this.info = res.data.message[0]
      })
    }
  }
}
</script>

<style lang="scss" >
  .goodsdesc{
    img{
      width: 100%;
    }
  }
</style>
